﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>URL重写</title>
    <script type="text/javascript" src="../Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="../Content/highlighter/scripts/shBrushXml.js"></script>
    <link type="text/css" rel="stylesheet" href="../Content/highlighter/styles/shCoreDefault.css"/>
    <script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body>
	<h3>URL重写</h3>
    <pre>
    Web.Config中
    </pre>
    <pre class="brush: xml;">
    &lt;RewriterConfig&gt;
    &lt;Rules&gt;
      &lt;RewriterRule&gt;
        &lt;LookFor&gt;~/Index.html&lt;/LookFor&gt;
        &lt;SendTo&gt;~/App/IndexController/Index.htm&lt;/SendTo&gt;
      &lt;/RewriterRule&gt;
    &lt;/Rules&gt;
    &lt;/RewriterConfig&gt;
    </pre>
    <pre>
        其中LookFor是你要转换的网址,SendTo是你要重写的新网址.
        ReWriterRule可以添加修改.当安装完NFinal框架后,会自动配置好首页URL.
    </pre>
</body>
</html>
